﻿#include <iostream>
using namespace std;

int main() {

	const int num = 6;

	int score[num];

	int sum = 0;

	cout << "计算" << num << "个人的总分和平均分\n";

	for (int i = 1; i <= num; i++) {
		cout << "第" << i << "个人的分数：";
		cin >> score[i-1];
	}

	for (int i = 0; i < num; i++) {
		sum += score[i];
	}

	cout << "总分为：" << sum << "\n";
	cout << "平均分为：" << static_cast<double>(sum) / num << endl;

	cin.get();
	cin.get();
}